//
//  EventDetailQuestionDescCell.m
//  ConvenientlyTake
//
//  Created by 森鑫 on 2022/12/22.
//

#import "EventDetailQuestionDescCell.h"
#import "EventDetailModel.h"
@implementation EventDetailQuestionDescCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    // Configure the view for the selected state
}

-(void)fillDataWith:(EventDetailModel *)model andTitleString:(NSString *)titleString{
    self.model = model;
    self.descLabel.text = titleString;
    if ([titleString isEqualToString:@"问题描述"]) {
        self.questionLabel.text = model.problemDescription?:@"无";
    } else if ([titleString isEqualToString:@"意见"]) {
        self.questionLabel.text = model.noDisposalDesc?:@"无";
    } else if ([titleString isEqualToString:@"处置意见"]) {
        self.questionLabel.text = model.disposalDesc?:@"无";
    }
}
@end
